﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<VolunteerInfoViewModel>" %>
<%@ Import Namespace="Ctef.Web.Models" %>
<%@ Import Namespace="Ctef.Web.Resources.Involve" %>
<%@ Import Namespace="Ctef.Web.Resources.Shared" %>

<asp:Content ID="Content1" ContentPlaceHolderID="LeftContent" runat="server">
    <script type="text/javascript">
        $(function () {
            ctef.initializeForm('#volunteerForm', '#registrationStatus');
        });
    </script>

    <div id="breadcrumbdiv"><%= SharedStrings.Menu_GetInvolved %> &gt; <%= SharedStrings.Menu_Volunteer %></div>
    <h2><%= Strings.Volunteer_SectionLabel %></h2>
    <hr />
    <p><%= Strings.Volunteer_SectionDescription %></p>
<% using (Html.BeginForm("RegisterVolunteer", "Involve", FormMethod.Post, new { id = "volunteerForm" })) %>
<% { %>

    <div class="formRow">
        <div class="formLabel"><%= Html.Label(Strings.Volunteer_Name)%></div>
        <%= Html.TextBoxFor(m => m.Name)%>
    </div>
    <div class="formRow">
        <div class="formLabel"><%= Html.Label(Strings.Volunteer_Email)%></div>
        <%= Html.TextBoxFor(m => m.Email)%>
    </div>
    <div class="formRow">
        <div class="formLabel"><%= Html.Label(Strings.Volunteer_Phone)%></div>
        <%= Html.TextBoxFor(m => m.Phone)%>
    </div>
    <p><%= Strings.Volunteer_Question_Projects %></p>
    <div>
        <%= Html.CheckBoxFor(m => m.Schools, new { id="project1", @checked="checked" }) %>
        <label for="project1"><%= Strings.Volunteer_Answer_Projects_School %></label>
    </div>
    <div>
        <%= Html.CheckBoxFor(m => m.Website, new { id="project2" }) %>
        <label for="project2"><%= Strings.Volunteer_Answer_Projects_Web %></label>
    </div>
    <div>
        <%= Html.CheckBoxFor(m => m.PublicRelations, new { id="project3" }) %>
        <label for="project2"><%= Strings.Volunteer_Answer_Projects_PR %></label>
    </div>
    <div>
        <%= Html.CheckBoxFor(m => m.Events, new { id="project4" }) %>
        <label for="project2"><%= Strings.Volunteer_Answer_Projects_Events %></label>
    </div>
    <p><%= Strings.Volunteer_Question_Time %></p>
    <div>
        <%= Html.RadioButtonFor(m => m.Time, "12", new { id="time1", @checked="checked" }) %>
        <label for="time1"><%= Strings.Volunteer_Answer_Time_12%></label>
    </div>
    <div>
        <%= Html.RadioButtonFor(m => m.Time, "34", new { id="time2"}) %>
        <label for="time2"><%= Strings.Volunteer_Answer_Time_34%></label>
    </div>
    <div>
        <%= Html.RadioButtonFor(m => m.Time, "68", new { id="time3"}) %>
        <label for="time3"><%= Strings.Volunteer_Answer_Time_68%></label>
    </div>
    <div>
        <%= Html.RadioButtonFor(m => m.Time, "8Plus", new { id="time4"}) %>
        <label for="time4"><%= Strings.Volunteer_Answer_Time_8Plus%></label>
    </div>
    <div>
        <p><%= Strings.Volunteer_Question_Occupation %></p>
        <%= Html.TextAreaFor(m => m.Occupation, 7, 60, null)%>
    </div>
    <div>
        <p><%= Strings.Volunteer_Question_Other %></p>
        <%= Html.TextAreaFor(m => m.AdditionalInfo, 7, 60, null)%>
    </div>
    <div>
        <input type="submit" value="<%= SharedStrings.Button_Submit %>" />
    </div>
<% } %>

    <div id="registrationStatus"></div>

</asp:Content>

